<!DOCTYPE html>
<html>

<body>
    <p id="p1"> To show what can js do </p>
    <img id="myPicture" src="./1.png" style="text-align:center;">


    <button type="button" onclick="document.getElementById('myPicture').src = './2.gif'"> click me! </button>


</body>

</html>